<?php
/*
 * Created on 05.01.2006
 *
 */

/**
 * Creates a cms link 
 * attributes:
 * href - pageid:<id>
 */
class xics_linkHandler
{

    var $value;
    var $optiontext;
    var $selected;

    function startElement (& $sender, $attrs)
    {
        if (!$attrs['href'])
        {
            die ("xics:link requires attribute href");
        }
        $sender->appendCode('$out->write($GLOBALS[\'tpl\']->prepareLink('.$attrs['href'].'));'."\n");
    }
    
    function endElement (& $sender)
    {
    }

} 

?>